namespace cn.cityworks;

public class Student
{
    public int Age { get; set; }

    // CS8618 - 声明为空 或 配合 初始值, 有以下三种解决方案
    public string? Name { get; set; }
    // public string? name { get; set;} = "";
    // public string? name { get; set;} = default!;

    public Student()
    {

    }

    public Student(String name, int age) => (Name, Age) = (name, age);
}